package com.stedu.mall.common.service;

import com.stedu.mall.common.bean.User;
import com.stedu.mall.common.exception.SteduException;

public interface UserService {
    //用户注册
    boolean reg(User user) throws SteduException;

    //登录
    User login(String username, String password) throws SteduException;

    //根据分类id删除
    boolean delete(Integer id) throws SteduException;

    //修改(充值)
    boolean update(User user, Integer userId) throws SteduException;
    //退款用的修改
    boolean update1(User user, Integer userId) throws SteduException;
    //根据分类id修改(重置密码)
    boolean back(Integer id);

    //分页条件搜索
    Object selectByCondition(User condition, Integer pageNum, Integer pageSize);

    //根据id查询
    User selectById(Integer id);

    boolean changePwd(String oldPwd, String newPwd, Integer id) throws SteduException;

    boolean changePwd1(String oldPwd, String newPwd, Integer id) throws SteduException;

    boolean updateMoney(User user, Integer id) throws SteduException;
}
